package com.caopeng.achievementmanagement.service;

import com.caopeng.achievementmanagement.pojo.Achievement;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Crescent_P
 * @date 2021-12-05 11:08
 */
@Service
public interface AchievementService {

    public List<Achievement> getAllAchievements();

    public List<Achievement> getAchievementsByUserID(long id);

    public int deleteAchievement(long id);

    public int uploadAchievement(Achievement achievement);

    public Achievement getAchievementById(long id);

    public int updateAchievement(Achievement achievement);

    public List<Achievement> searchByTitle(String title);

    public List<Achievement> searchByTitleAndUser(long id, String title);
}
